package cn.learn.athena.controller;

import cn.learn.athena.util.Validation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zlj
 * @Date 2018/10/25
 * @des 页面controller
 */
@RequestMapping("/")
@Controller
public class PageController {


    @RequestMapping("login")
    public String toLogin() {
        return "login" ;
    }

    @RequestMapping("/")
    public String toIndex() {
        return "redirect:/index";
    }

    @RequestMapping("/index")
    public String index() {
        return "index";
    }

    @RequestMapping("/toAgentLevel")
    public String toAgentLevel() {
        Validation.isPageNotFound(true);
        return "agent_level";
    }
}
